home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / term.1 < prev    next >
Text File  |  1995-07-25  |  19KB  |  463 lines

  1.  
  2.  
  3.  
  4.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           term - server for multiple communication channels on a
  10.           serial link
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           tttteeeerrrrmmmm [-s speed] [-n on|off] [-c on|off] [-r] [-f arg] [-w
  14.           arg] [-t arg] [-o] [-a] [-d lev] [-l file] [-v file] [-1]
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.           _T_e_r_m and  its  clients  support  multiple,  compressed,  and
  18.           error-corrected communication channels over a regular serial
  19.           link, typically a modem connection. The clients can  set  up
  20.           channels  to  run  an  interactive shell on the other system
  21.           similarly _r_l_o_g_i_n(1), to execute commands on the other system
  22.           similarly  _r_s_h(1), to transfer files in either direction, to
  23.           redirect X-server connections from one system to the  other,
  24.           or  to  redirect any network port connection from one system
  25.           to  a  port  on  the  other.   Any  of   these   can   occur
  26.           simultaneously, and in either direction.
  27.  
  28.           To support these multiple clients, a  term  daemon  on  each
  29.           system  takes  control of the device connected to the modem.
  30.           So you must compile _t_e_r_m and the clients  on  both  systems.
  31.           Source     is    available    by    anonymous    ftp    from
  32.           tartarus.uwa.edu.au:/pub/oreillym/term/term???.tar.z     and
  33.           nic.funet.fi:/pub/OS/Linux/BETA/term???.tar.z
  34.  
  35.      DDDDEEEEFFFFIIIINNNNIIIITTTTIIIIOOOONNNN
  36.           Due to the fact that  anything  _t_e_r_m  and  its  clients  can
  37.           initiate  from one end of the link they will just as happily
  38.           initiate from the other, the following  frame  of  reference
  39.           will  be  used  throughout  this  documentation.  The remote
  40.           system refers to the system at the other end  of  the  modem
  41.           link,  and  the  local  host  refers  to the machine you are
  42.           typing on, typically the user's home system.
  43.  
  44.      UUUUSSSSAAAAGGGGEEEE
  45.           _T_e_r_m is run as a daemon which accepts connections  from  its
  46.           clients  and  establishes  channels  for each client's data.
  47.           _T_e_r_m must be run  on  both  ends.   On  the  remote  system,
  48.           execute something like
  49.  
  50.              term -r -n off
  51.  
  52.           Then, on the local system, either exit your comm program and
  53.           type
  54.  
  55.              term -v /dev/tty?? [-n off] &
  56.  
  57.           where tty?? is the device name  for  your  modem  or  serial
  58.           port.   You  may be able to start the local term from within
  59.           your comm program, e.g. for xcomm type
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 7/3/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  71.  
  72.  
  73.  
  74.              control-A x "$ term"
  75.  
  76.           Once the term daemons are running at both ends  they  handle
  77.           the  transmission  of  data  over  the  link.  These clients
  78.           connect  to  a  local  _t_e_r_m  daemon  which   establishes   a
  79.           communication  channel  with the remote daemon and/or remote
  80.           processes.   The  clients  are  discussed   in   detail   in
  81.           _t_e_r_m__c_l_i_e_n_t_s(1).  Briefly, _t_r_s_h runs an interactive shell or
  82.           commands on the remote system, _t_u_p_l_o_a_d transfers files  from
  83.           the local system to the remote, _t_r_e_d_i_r redirects connections
  84.           from a port on the local system to  a  port  on  the  remote
  85.           system, _t_x_c_o_n_n redirects X-server connections from the local
  86.           system to the remote, and _t_m_o_n monitors client statistics.
  87.  
  88.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  89.           _T_e_r_m accepts a number of command-line options which override
  90.           settings established by the termrc file (see below):
  91.  
  92.           ----cccc off
  93.                Turns off compression.  Still  does  error  correction.
  94.                Consider  this  option if you have hardware compression
  95.                (ie. v.32.bis) or are  transferring  compressed  files.
  96.                The default is to have compression on.
  97.  
  98.           ----nnnn on|off
  99.                Turns on line noise echoing.   Talk  requests,  writes,
  100.                and  biffs to the login which is running term will then
  101.                appear.  This is a useful option to use  on  the  local
  102.                end  (the  end  you are sitting at).  Without this, you
  103.                will never see  any  talk  requests  directed  to  your
  104.                remote login. Default is on.
  105.  
  106.           ----ffff <number>
  107.                Makes term send XON at specified interval.  Zero is  no
  108.                flow  control  emulation,  10  is a single XON every 10
  109.                characters. The default is zero. 100  is  a  reasonable
  110.                value.
  111.  
  112.           ----ssss <number>
  113.                Specifies  a  maximum  number  of   bits   per   second
  114.                (baudrate)  term will try to send over the serial link.
  115.                Term will avoid sending characters  at  a  higher  data
  116.                rate than this. This overrides the BAUDRATE environment
  117.                variable.  The default is 2400.  This option is  needed
  118.                as most systems will buffer the data sent to the serial
  119.                port.  Unfortunately  this  (unknown)   buffering   can
  120.                interfere with term's packet timeout mechanism.  During
  121.                setup and tuning it is better to have <number>  be  too
  122.                small  rather  than too large. For high speed links ( >
  123.                9600), making it unlimited  is  probably  advantageous.
  124.                This  is  achieved  by setting the number to zero. Term
  125.                will then rely solely on the packet windows to do  flow
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 7/3/94)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  137.  
  138.  
  139.  
  140.                control.
  141.  
  142.           ----wwww <number>
  143.                Sets the transmission window size, that is, the  number
  144.                of  unacknowledged  packets  that term may send.  Lower
  145.                numbers may lead to better interactive response  times.
  146.                Higher   numbers   may   lead   to  better  throughput,
  147.                particularly if the serial link latencies are large and
  148.                the  timeout  length  is set large.  Higher numbers can
  149.                also improve efficiency on noisy lines.  Default is  3.
  150.                This  will  be  too  low  for  higher  speed  links.  A
  151.                reasonable value is 10 with a timeout  (see  below)  of
  152.                150 for 14.4Kbps link.
  153.  
  154.           ----tttt <number>
  155.                Timeout length in 20ths of a  second.   This  specifies
  156.                how  long  term will wait for an acknowledgement before
  157.                retransmitting a packet.  Default is 50,  maximum  200.
  158.                Increasing both the window size and timeout can lead to
  159.                improved throughput, but  at  the  expense  of  greater
  160.                latencies   for   interactive  work  and  during  noise
  161.                recovery.
  162.  
  163.           ----rrrr   Use this on the remote  term  so  that  client  numbers
  164.                won't clash.
  165.  
  166.           ----aaaa   Turns on seven bit line mode.  Use only if you  have  a
  167.                seven bit line, as determined by _l_i_n_e_c_h_e_c_k.
  168.  
  169.           ----llll <filename>
  170.                Output all log/noise/debugging to the file <filename>
  171.  
  172.           ----vvvv <filename>
  173.                Set the modem device  to  be  <filename>.   Appropriate
  174.                usage is something like "-v/dev/ttys1"
  175.  
  176.           ----1111   Use stdout instead of stdin as the modem port.  This is
  177.                ignored if a -v is also present.
  178.  
  179.           ----dddd <<<<nnnnuuuummmmbbbbeeeerrrr>>>>
  180.                This sets the  debuging  level.   This  is  useful  for
  181.                monitoring  packet timeout conditions and other things.
  182.                Level 64 is suggested, 478 is  verbose.   Read  debug.h
  183.                and  the other source files to find out what the levels
  184.                do.  If you are not familiar with packet protocols  and
  185.                pouring  through  source  code,  then  this  option  is
  186.                unlikely to help you.
  187.  
  188.           ----oooo   Turns on  packet  send  forcing.   Re-transmits  oldest
  189.                packet  if  nothing  to send.  Default off.  Of dubious
  190.                utility. Not properly debugged. Very bad idea if  speed
  191.                is unlimited.
  192.  
  193.  
  194.  
  195.      Page 3                                           (printed 7/3/94)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  203.  
  204.  
  205.  
  206.      IIIINNNNIIIITTTTIIIIAAAALLLLIIIIZZZZAAAATTTTIIIIOOOONNNN FFFFIIIILLLLEEEE
  207.           The  file  _t_e_r_m_r_c  in  the  ._t_e_r_m  directory  in  your  home
  208.           directory  may  be  used  to  specify default settings for a
  209.           user.  These settings are overruled by  values  set  in  the
  210.           command  line,  but  several options can only be set in this
  211.           file.   Blank  lines  and  lines  beginning  with  '#'   are
  212.           comments,  other  lines  must begin with one of the options,
  213.           and, if an argument is required, it must be  separated  from
  214.           the option by exactly one space.  Legal options are:
  215.  
  216.           _e_s_c_a_p_e <number>
  217.                This is one of the most  important  options  for  term.
  218.                Usage  is  either  'escape  <some  decimal  number>' or
  219.                'escape <start of range>-<end of  range>'.  This  tells
  220.                term  to  never transmit the character or characters in
  221.                the range. This is  essential  for  serial  lines  that
  222.                aren't  fully  transparent. For example, lines that use
  223.                software flow control will want to do 'escape  17'  and
  224.                'escape  19'. If you only have a seven-bit link, DO NOT
  225.                use 'escape 128-255', see the termrc 'sevenbit'  option
  226.                below.    See   also   the   linecheck   program,   and
  227.                _t_e_r_m__s_e_t_u_p(1).
  228.  
  229.           _i_g_n_o_r_e <number>
  230.                This tells term to silently strip this character if  it
  231.                is  received  over  the  serial  link.   Its use should
  232.                correspond to 'escape' options used by the term on  the
  233.                other system.  E.g. if you use 'escape 126' on one end,
  234.                you should use 'ignore 126' on the other.
  235.  
  236.           _c_o_m_p_r_e_s_s [on|off].
  237.                Turns the default  compression  mode  on  or  off.  The
  238.                default  is 'compress on'.  With this on, all data will
  239.                be compressed by term before sending  over  the  serial
  240.                line,  and then un-compressed at the other end.  If you
  241.                are sending already compressed data, it is  recommended
  242.                that  you  turn  compression  off.   Similarly, if your
  243.                modem already does compression you may consider leaving
  244.                it  off.   You  can  turn  compression  on and off on a
  245.                client-by-client  basis  with  the  '-c'   option   for
  246.                clients. See _t_e_r_m__c_l_i_e_n_t_s(1).
  247.  
  248.           _b_a_u_d_r_a_t_e <number>.
  249.                This is used to limit the  rate  at  which  term  sends
  250.                data.  Set this to the minimum of your modem speed, and
  251.                the computer-to-modem baud rate. Values  that  are  too
  252.                high shouldn't hurt too much, as long as _t_i_m_e_o_u_t is not
  253.                set too low.  Default is 2400.
  254.  
  255.           _t_i_m_e_o_u_t <number>.
  256.                Set the number of 1/20th of a  second  to  wait  before
  257.                re-sending packets that haven't been acknowledged.  Low
  258.  
  259.  
  260.  
  261.      Page 4                                           (printed 7/3/94)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  269.  
  270.  
  271.  
  272.                values will provide faster recovery  from  line  noise,
  273.                but higher values are required if the latencies in your
  274.                link are large.  Values between 50 and 120 are typical.
  275.                The default value is 70.
  276.  
  277.           _w_i_n_d_o_w <number>
  278.                The size of the packet  window.  Default  value  is  3.
  279.                Increase  this  if  your  latencies  (and  timeout) are
  280.                large.
  281.  
  282.           _n_o_i_s_e on
  283.                If this is set, then term will send anything it doesn't
  284.                understand  to  the standard error or the -l file. This
  285.                is  where  talk  requests,  mail  biffs,  writes,   and
  286.                corrupted  packets will end up. This is recommended for
  287.                the local end.
  288.  
  289.           _r_e_m_o_t_e
  290.                Sets this to the remote  side.   It  should  always  be
  291.                specified  on  one, and only one end of the link.  This
  292.                prevents client number clashes.
  293.  
  294.           _s_e_v_e_n_b_i_t
  295.                Use this if your line is a  sevenbit  line.   Use  this
  296.                instead of  'escape 128-255'.
  297.  
  298.           _b_r_e_a_k_o_u_t <number>
  299.                The value of breakout character. Default is  48  ('0').
  300.                If   either   'term'   daemon  receives  five  breakout
  301.                characters in a row from the link, outside a packet, it
  302.                will exit.
  303.  
  304.           _c_h_d_i_r <path>
  305.                Sets the home directory for the term daemon. This  will
  306.                be  the directory for processes started started by this
  307.                daemon for remote _t_r_s_h clients.  And it will be used by
  308.                a remote _t_u_p_l_o_a_d when relative paths are used.
  309.  
  310.           _d_e_n_y_r_s_h on
  311.                If this is set, any _t_r_s_h request  from  the  other  end
  312.                will  be  rejected. This is to provide better security,
  313.                especially when run as root.  You can set this on  both
  314.                ends separately, allowing access on one end and denying
  315.                on the other.
  316.  
  317.           _c_h_r_o_o_t <directory>
  318.                Runs term  in  a  _c_h_r_o_o_t  environment  (see  _c_h_r_o_o_t(2),
  319.                _f_t_p_d(8)).   If  term is run as root, a _t_u_p_l_o_a_d from the
  320.                other side could clobber every file on the  system.  To
  321.                avoid  this, a _c_h_r_o_o_t environment can be set up to give
  322.                access only to  specific  directories.  It  accordingly
  323.                restricts  the  commands that can be used by _t_r_s_h.  The
  324.  
  325.  
  326.  
  327.      Page 5                                           (printed 7/3/94)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  335.  
  336.  
  337.  
  338.                _c_h_r_o_o_t takes place  after  every  file  access  in  the
  339.                initialisation  process, in particular after the server
  340.                socket is opened.
  341.  
  342.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  343.           BBBBAAAAUUUUDDDDRRRRAAAATTTTEEEE
  344.                Used to set the speed.  Overridden by termrc or command
  345.                line setting.
  346.  
  347.           SSSSHHHHEEEELLLLLLLL
  348.                Default shell for _t_r_s_h.
  349.  
  350.           DDDDIIIISSSSPPPPLLLLAAAAYYYY
  351.                Used by _t_x_c_o_n_n to determine which X-server port to use.
  352.  
  353.           TTTTEEEERRRRMMMMDDDDIIIIRRRR
  354.                Where to make the .term directory (which  contains  the
  355.                socket for _t_e_r_m itself).  Default is HOME.
  356.  
  357.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  358.           The ----dddd option provides debugging output.  See _t_e_r_m__s_e_t_u_p(1),
  359.           _l_i_n_e_c_h_e_c_k(1),   or   _l_i_n_e_r_e_m(1)   for   further   diagnostic
  360.           information.
  361.  
  362.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  363.           _t_e_r_m__c_l_i_e_n_t_s(1)
  364.                The man page for the term clients.
  365.  
  366.           _t_e_r_m__s_e_t_u_p(1)
  367.                The man page for the linecheck  program  and  the  test
  368.                program  for  debugging your serial link and exercising
  369.                term and clients.
  370.  
  371.           _t_e_r_m/_R_E_A_D_M_E
  372.                The original documents for _t_e_r_m from  which  these  man
  373.                pages were written.
  374.  
  375.           _t_e_r_m/_O_P_T_I_O_N_S
  376.                Another list of options term accepts.
  377.  
  378.           _t_e_r_m/_T_E_R_M_R_C
  379.                Another description of the syntax and options the  user
  380.                may set in ~/.term/termrc.
  381.  
  382.           _t_e_r_m/_C_H_A_N_G_E_S
  383.                A list of changes to the program  since  these  manuals
  384.                were edited. (version 1.0.6a)
  385.  
  386.      BBBBUUUUGGGGSSSS
  387.           If a remote client stops consuming its input but leaves  the
  388.           channel open,  the local term daemon will continue to resend
  389.           unacked packets.  _T_e_r_m by  default  requires  a  line  which
  390.  
  391.  
  392.  
  393.      Page 6                                           (printed 7/3/94)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      TTTTEEEERRRRMMMM((((1111))))                   UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV                   TTTTEEEERRRRMMMM((((1111))))
  401.  
  402.  
  403.  
  404.           passes  through all ascii values from 0 to 255.  Xyplex-type
  405.           terminal servers may require the use of set session  passall
  406.           to work correctly.
  407.  
  408.      AAAAUUUUTTTTHHHHOOOORRRR
  409.           Michael O'Reilly, oreillym@tartarus.uwa.edu.au.
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.      Page 7                                           (printed 7/3/94)
  460.  
  461.  
  462.  
  463.